import xcRequest from '@/service/index.js'

export function getRolesRequest() {
  return xcRequest.get({
    url: '/roles/getAllRoles.php'
  })
}

export function addRolesRequest(params) {
  return xcRequest.get({
    url: '/roles/addRoles.php',
    params
  })
}
export function deteleRolesRequest(params) {
  return xcRequest.get({
    url: '/roles/delRoles.php',
    params
  })
}
export function editRolesRequest(params) {
  return xcRequest.get({
    url: '/roles/updateRoles.php',
    params
  })
}
